Optimal. Leaf size=137 \[ \frac{a (3 a+5 b) \cos (e+f x)}{3 b^2 f (a+b)^2 \sqrt{a-b \cos ^2(e+f x)+b}}-\frac{\tan ^{-1}\left (\frac{\sqrt{b} \cos (e+f x)}{\sqrt{a-b \cos ^2(e+f x)+b}}\right )}{b^{5/2} f}+\frac{a \sin ^2(e+f x) \cos (e+f x)}{3 b f (a+b) \left (a-b \cos ^2(e+f x)+b\right )^{3/2}} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.136832, antiderivative size = 137, normalized size of antiderivative = 1., number of steps used = 5, number of rules used = 5, integrand size = 25, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.2, Rules used = {3186, 413, 385, 217, 203} \[ \frac{a (3 a+5 b) \cos (e+f x)}{3 b^2 f (a+b)^2 \sqrt{a-b \cos ^2(e+f x)+b}}-\frac{\tan ^{-1}\left (\frac{\sqrt{b} \cos (e+f x)}{\sqrt{a-b \cos ^2(e+f x)+b}}\right )}{b^{5/2} f}+\frac{a \sin ^2(e+f x) \cos (e+f x)}{3 b f (a+b) \left (a-b \cos ^2(e+f x)+b\right )^{3/2}} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 3186
Rule 413
Rule 385
Rule 217
Rule 203
Rubi steps
\begin{align*} \int \frac{\sin ^5(e+f x)}{\left (a+b \sin ^2(e+f x)\right )^{5/2}} \, dx &=-\frac{\operatorname{Subst}\left (\int \frac{\left (1-x^2\right )^2}{\left (a+b-b x^2\right )^{5/2}} \, dx,x,\cos (e+f x)\right )}{f}\\ &=\frac{a \cos (e+f x) \sin ^2(e+f x)}{3 b (a+b) f \left (a+b-b \cos ^2(e+f x)\right )^{3/2}}+\frac{\operatorname{Subst}\left (\int \frac{-a-3 b+3 (a+b) x^2}{\left (a+b-b x^2\right )^{3/2}} \, dx,x,\cos (e+f x)\right )}{3 b (a+b) f}\\ &=\frac{a (3 a+5 b) \cos (e+f x)}{3 b^2 (a+b)^2 f \sqrt{a+b-b \cos ^2(e+f x)}}+\frac{a \cos (e+f x) \sin ^2(e+f x)}{3 b (a+b) f \left (a+b-b \cos ^2(e+f x)\right )^{3/2}}-\frac{\operatorname{Subst}\left (\int \frac{1}{\sqrt{a+b-b x^2}} \, dx,x,\cos (e+f x)\right )}{b^2 f}\\ &=\frac{a (3 a+5 b) \cos (e+f x)}{3 b^2 (a+b)^2 f \sqrt{a+b-b \cos ^2(e+f x)}}+\frac{a \cos (e+f x) \sin ^2(e+f x)}{3 b (a+b) f \left (a+b-b \cos ^2(e+f x)\right )^{3/2}}-\frac{\operatorname{Subst}\left (\int \frac{1}{1+b x^2} \, dx,x,\frac{\cos (e+f x)}{\sqrt{a+b-b \cos ^2(e+f x)}}\right )}{b^2 f}\\ &=-\frac{\tan ^{-1}\left (\frac{\sqrt{b} \cos (e+f x)}{\sqrt{a+b-b \cos ^2(e+f x)}}\right )}{b^{5/2} f}+\frac{a (3 a+5 b) \cos (e+f x)}{3 b^2 (a+b)^2 f \sqrt{a+b-b \cos ^2(e+f x)}}+\frac{a \cos (e+f x) \sin ^2(e+f x)}{3 b (a+b) f \left (a+b-b \cos ^2(e+f x)\right )^{3/2}}\\ \end{align*}
Mathematica [A] time = 0.754213, size = 133, normalized size = 0.97 \[ \frac{\frac{2 \sqrt{2} a \cos (e+f x) \left (3 a^2-b (2 a+3 b) \cos (2 (e+f x))+7 a b+3 b^2\right )}{(a+b)^2 (2 a-b \cos (2 (e+f x))+b)^{3/2}}-\frac{3 \log \left (\sqrt{2 a-b \cos (2 (e+f x))+b}+\sqrt{2} \sqrt{-b} \cos (e+f x)\right )}{\sqrt{-b}}}{3 b^2 f} \]
Warning: Unable to verify antiderivative.
[In]
[Out]
________________________________________________________________________________________
Maple [A] time = 2.746, size = 243, normalized size = 1.8 \begin{align*}{\frac{1}{f\cos \left ( fx+e \right ) }\sqrt{- \left ( -b \left ( \sin \left ( fx+e \right ) \right ) ^{2}-a \right ) \left ( \cos \left ( fx+e \right ) \right ) ^{2}} \left ({\frac{1}{2}\arctan \left ({\sqrt{b} \left ( \left ( \sin \left ( fx+e \right ) \right ) ^{2}-{\frac{-a+b}{2\,b}} \right ){\frac{1}{\sqrt{- \left ( -b \left ( \sin \left ( fx+e \right ) \right ) ^{2}-a \right ) \left ( \cos \left ( fx+e \right ) \right ) ^{2}}}}} \right ){b}^{-{\frac{5}{2}}}}-{\frac{{a}^{2} \left ( 2\,b \left ( \sin \left ( fx+e \right ) \right ) ^{2}+3\,a+b \right ) \left ( \cos \left ( fx+e \right ) \right ) ^{2}}{3\,{b}^{2} \left ( a+b \left ( \sin \left ( fx+e \right ) \right ) ^{2} \right ) \left ({a}^{2}+2\,ab+{b}^{2} \right ) }{\frac{1}{\sqrt{- \left ( -b \left ( \sin \left ( fx+e \right ) \right ) ^{2}-a \right ) \left ( \cos \left ( fx+e \right ) \right ) ^{2}}}}}+2\,{\frac{a \left ( \cos \left ( fx+e \right ) \right ) ^{2}}{{b}^{2} \left ( a+b \right ) \sqrt{- \left ( -b \left ( \sin \left ( fx+e \right ) \right ) ^{2}-a \right ) \left ( \cos \left ( fx+e \right ) \right ) ^{2}}}} \right ){\frac{1}{\sqrt{a+b \left ( \sin \left ( fx+e \right ) \right ) ^{2}}}}} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [F(-2)] time = 0., size = 0, normalized size = 0. \begin{align*} \text{Exception raised: ValueError} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [B] time = 6.0517, size = 2045, normalized size = 14.93 \begin{align*} \text{result too large to display} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F(-1)] time = 0., size = 0, normalized size = 0. \begin{align*} \text{Timed out} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [F] time = 0., size = 0, normalized size = 0. \begin{align*} \int \frac{\sin \left (f x + e\right )^{5}}{{\left (b \sin \left (f x + e\right )^{2} + a\right )}^{\frac{5}{2}}}\,{d x} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]